package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Dykgg;

public interface DykggMapper {
    int deleteByPrimaryKey(String deviceid);

    int insert(Dykgg record);

    int insertSelective(Dykgg record);

    Dykgg selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Dykgg record);

    int updateByPrimaryKey(Dykgg record);
    
    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);
    
    List<Dykgg> selectDeviceList(@Param("name") String name,@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType") int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("stationDeviceType")int stationDeviceType,@Param("stationCode")String stationCode,@Param("beginTime") String beginTime,@Param("endTime") String endTime,
            @Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize);

    int selectDeviceCount(@Param("name") String name,@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType") int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("stationDeviceType")int stationDeviceType,@Param("stationCode")String stationCode,@Param("beginTime") String beginTime,@Param("endTime") String endTime);

    List<Dykgg> selectByDyzf(@Param("stationCode") String stationCode,@Param("deviceName") String deviceName,@Param("companyId") Long companyId,@Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);
    
    int selectDeviceCountByDyzf(@Param("stationCode") String stationCode,@Param("deviceName") String deviceName,@Param("companyId") Long companyId);
}